﻿using System;

namespace YArchitech.BIM.XRouter
{
	public class GeoUtil
	{
		public static bool IsEqual(double d1, double d2)
		{
			return Math.Abs(d1 - d2) < 0.001;
		}

		public static bool IsEqual(double d1, double d2, double dPrecision)
		{
			return Math.Abs(d1 - d2) < dPrecision;
		}

		public const double precision = 0.001;
	}
}
